package com.liming.common.pojo.vo.stock;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liming
 * @date 2025/1/23
 */
@Data
@Schema(description = "库存信息VO")
public class StockVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "库存ID")
    private Long id;

    @Schema(description = "商品ID")
    private Long productId;

    @Schema(description = "商品名称")
    private String productName;

    @Schema(description = "商品型号")
    private String modelNumber;

    @Schema(description = "仓库ID")
    private Long warehouseId;

    @Schema(description = "仓库名称")
    private String warehouseName;

    @Schema(description = "商品可用库存")
    private Integer availableStock;

    @Schema(description = "商品锁定库存")
    private Integer lockedStock;

    @Schema(description = "商品总库存")
    private Integer totalStock;

    @Schema(description = "商品库存预警值")
    private Integer alertStock;

    @Schema(description = "库存状态：0 禁用 1 启用")
    private Integer status;
}
